package com.templates;

import java.util.ArrayList;
import java.util.List;

/***
 * 
 * @author Administrator
 *
 */
public class template2Object {

	public static void print(List<Object> list){
		System.out.println("print:"+list);
	}
	public static void printT(List<?> list){
		System.out.println("printT:"+list);
	}
	
	public static void printE(List<? extends Object> list){
		System.out.println("printE:"+list);
	}
	public static void main(String[]args){
		String test="Hello Java!";
		List<String> list=new ArrayList<String>();
		list.add(test);
//		print(list);
		printT(list);
		printE(list);
		list.clear();
	}

}
